package com.smxy.daydayup.service.serviceImpl;

import com.smxy.daydayup.mapper.CourseTalkMapper;
import com.smxy.daydayup.pojo.CourseTalk;
import com.smxy.daydayup.pojo.dto.TalkInfo;
import com.smxy.daydayup.service.CourseTalkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
  * @team daydayup
  * @time 2021-12-06 21:45
  */
@Service
public class CourseTalkServiceImpl implements CourseTalkService{

    @Resource
    private CourseTalkMapper courseTalkMapper;

    @Override
    public int deleteByPrimaryKey(Long courseTalkId) {
        return courseTalkMapper.deleteByPrimaryKey(courseTalkId);
    }

    @Override
    public int insert(CourseTalk record) {
        return courseTalkMapper.insert(record);
    }

    @Override
    public int insertSelective(CourseTalk record) {
        return courseTalkMapper.insertSelective(record);
    }

    @Override
    public CourseTalk selectByPrimaryKey(Long courseTalkId) {
        return courseTalkMapper.selectByPrimaryKey(courseTalkId);
    }

    @Override
    public int updateByPrimaryKeySelective(CourseTalk record) {
        return courseTalkMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CourseTalk record) {
        return courseTalkMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TalkInfo> selectAllTalk(Integer sectionId) {
        return courseTalkMapper.selectAllTalk(sectionId);
    }

    @Override
    public List<TalkInfo> selectReply(String courseTalkNumber) {
        return courseTalkMapper.selectReply(courseTalkNumber);
    }

}
